﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 产业链支持_库存杂发单成本子表DTO Copy DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class CopyOfIC_MiscShipmentCostDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public CopyOfIC_MiscShipmentCostDTOData()
		{
			initData();
		}
		private void initData()
		{
					ID= 0; 
				
		
		
					MacAmt=0m; 
					PurAmt=0m; 
					CollabAmt=0m; 
					WorkAmt=0m; 
					MFCAmt=0m; 
					ItemAmt=0m; 
					CostPrice=0m; 
					CostMny=0m; 
		
					SysStates= 0; 
				
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        			if (this.SOB != null) 
			{
				this.SOB.DoSerializeKeyList(dict);
			}
	        			if (this.Costfield != null) 
			{
				this.Costfield.DoSerializeKeyList(dict);
			}
	        			if (this.CostType != null) 
			{
				this.CostType.DoSerializeKeyList(dict);
			}
	        	        	        	        	        	        	        	        	        	        	        			if (this.IC_MiscShipmentLDTO != null) 
			{
				this.IC_MiscShipmentLDTO.DoSerializeKeyList(dict);
			}
	        			if (this.CopyOfIC_MiscShipmentLDTO != null) 
			{
				this.CopyOfIC_MiscShipmentLDTO.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public CopyOfIC_MiscShipmentCostDTOData(  System.Int64 iD  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData sOB  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData costfield  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData costType  , System.Decimal macAmt  , System.Decimal purAmt  , System.Decimal collabAmt  , System.Decimal workAmt  , System.Decimal mFCAmt  , System.Decimal itemAmt  , System.Decimal costPrice  , System.Decimal costMny  , List<UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegmentsData> descFlexSegments  , System.Int16 sysStates  , UFIDA.U9.ISV.MiscShipISV.IC_MiscShipmentLDTOData iC_MiscShipmentLDTO  , ufida.u9.ait.openapi.CopyOfIC_MiscShipmentLDTOData copyOfIC_MiscShipmentLDTO  )
		{
			initData();
			this.ID = iD;
			this.SOB = sOB;
			this.Costfield = costfield;
			this.CostType = costType;
			this.MacAmt = macAmt;
			this.PurAmt = purAmt;
			this.CollabAmt = collabAmt;
			this.WorkAmt = workAmt;
			this.MFCAmt = mFCAmt;
			this.ItemAmt = itemAmt;
			this.CostPrice = costPrice;
			this.CostMny = costMny;
			this.DescFlexSegments = descFlexSegments;
			this.SysStates = sysStates;
			this.IC_MiscShipmentLDTO = iC_MiscShipmentLDTO;
			this.CopyOfIC_MiscShipmentLDTO = copyOfIC_MiscShipmentLDTO;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// ID
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.ID
		/// </summary>
		private System.Int64 m_iD ;
		[DataMember(IsRequired=false)]
		public System.Int64 ID
		{
			get	
			{	
				return m_iD ;
			}
			set	
			{	
				m_iD = value ;	
			}
		}
			
		

		/// <summary>
		/// 账簿
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.账簿
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_sOB ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData SOB
		{
			get	
			{	
				return m_sOB ;
			}
			set	
			{	
				m_sOB = value ;	
			}
		}
			
		

		/// <summary>
		/// 成本域
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.成本域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_costfield ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Costfield
		{
			get	
			{	
				return m_costfield ;
			}
			set	
			{	
				m_costfield = value ;	
			}
		}
			
		

		/// <summary>
		/// 成本类型
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.成本类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_costType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData CostType
		{
			get	
			{	
				return m_costType ;
			}
			set	
			{	
				m_costType = value ;	
			}
		}
			
		

		/// <summary>
		/// 机器费
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.机器费
		/// </summary>
		private System.Decimal m_macAmt ;
		[DataMember(IsRequired=false)]
		public System.Decimal MacAmt
		{
			get	
			{	
				return m_macAmt ;
			}
			set	
			{	
				m_macAmt = value ;	
			}
		}
			
		

		/// <summary>
		/// 采购成本
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.采购成本
		/// </summary>
		private System.Decimal m_purAmt ;
		[DataMember(IsRequired=false)]
		public System.Decimal PurAmt
		{
			get	
			{	
				return m_purAmt ;
			}
			set	
			{	
				m_purAmt = value ;	
			}
		}
			
		

		/// <summary>
		/// 外协费
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.外协费
		/// </summary>
		private System.Decimal m_collabAmt ;
		[DataMember(IsRequired=false)]
		public System.Decimal CollabAmt
		{
			get	
			{	
				return m_collabAmt ;
			}
			set	
			{	
				m_collabAmt = value ;	
			}
		}
			
		

		/// <summary>
		/// 人工费
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.人工费
		/// </summary>
		private System.Decimal m_workAmt ;
		[DataMember(IsRequired=false)]
		public System.Decimal WorkAmt
		{
			get	
			{	
				return m_workAmt ;
			}
			set	
			{	
				m_workAmt = value ;	
			}
		}
			
		

		/// <summary>
		/// 制造费
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.制造费
		/// </summary>
		private System.Decimal m_mFCAmt ;
		[DataMember(IsRequired=false)]
		public System.Decimal MFCAmt
		{
			get	
			{	
				return m_mFCAmt ;
			}
			set	
			{	
				m_mFCAmt = value ;	
			}
		}
			
		

		/// <summary>
		/// 材料费
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.材料费
		/// </summary>
		private System.Decimal m_itemAmt ;
		[DataMember(IsRequired=false)]
		public System.Decimal ItemAmt
		{
			get	
			{	
				return m_itemAmt ;
			}
			set	
			{	
				m_itemAmt = value ;	
			}
		}
			
		

		/// <summary>
		/// 实际单价
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.实际单价
		/// </summary>
		private System.Decimal m_costPrice ;
		[DataMember(IsRequired=false)]
		public System.Decimal CostPrice
		{
			get	
			{	
				return m_costPrice ;
			}
			set	
			{	
				m_costPrice = value ;	
			}
		}
			
		

		/// <summary>
		/// 实际金额
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.实际金额
		/// </summary>
		private System.Decimal m_costMny ;
		[DataMember(IsRequired=false)]
		public System.Decimal CostMny
		{
			get	
			{	
				return m_costMny ;
			}
			set	
			{	
				m_costMny = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.描述性弹性域
		/// </summary>
		private List<UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegmentsData> m_descFlexSegments ;
		[DataMember(IsRequired=false)]
		public List<UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegmentsData> DescFlexSegments
		{
			get	
			{	
				if (m_descFlexSegments == null )
				{
					List<UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegmentsData> n_m_list = new List<UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegmentsData>() ;
					m_descFlexSegments = n_m_list ;
				}
				return m_descFlexSegments ;
			}
			set	
			{	
				m_descFlexSegments = value ;	
			}
		}
			
		

		/// <summary>
		/// CUD
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.CUD
		/// </summary>
		private System.Int16 m_sysStates ;
		[DataMember(IsRequired=false)]
		public System.Int16 SysStates
		{
			get	
			{	
				return m_sysStates ;
			}
			set	
			{	
				m_sysStates = value ;	
			}
		}
			
		

		/// <summary>
		/// 产业链支持_库存杂发单表行DTO
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.产业链支持_库存杂发单表行DTO
		/// </summary>
		private UFIDA.U9.ISV.MiscShipISV.IC_MiscShipmentLDTOData m_iC_MiscShipmentLDTO ;
		[DataMember(IsRequired=false)]
		public UFIDA.U9.ISV.MiscShipISV.IC_MiscShipmentLDTOData IC_MiscShipmentLDTO
		{
			get	
			{	
				return m_iC_MiscShipmentLDTO ;
			}
			set	
			{	
				m_iC_MiscShipmentLDTO = value ;	
			}
		}
			
		

		/// <summary>
		/// 产业链支持_库存杂发单表行DTO Copy
		/// 产业链支持_库存杂发单成本子表DTO Copy.Misc.产业链支持_库存杂发单表行DTO Copy
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfIC_MiscShipmentLDTOData m_copyOfIC_MiscShipmentLDTO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfIC_MiscShipmentLDTOData CopyOfIC_MiscShipmentLDTO
		{
			get	
			{	
				return m_copyOfIC_MiscShipmentLDTO ;
			}
			set	
			{	
				m_copyOfIC_MiscShipmentLDTO = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																																
		#endregion 
	} 	
}
